package com.wbl.train.member;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

@ComponentScan("com.wbl.train")
@SpringBootApplication
// 开启openFeign
@EnableFeignClients("com.wbl.train.common.feign")
public class MemberTrainApplication {

    private static final Logger Log = LoggerFactory.getLogger(MemberTrainApplication.class);

    public static void main(String[] args) {
        SpringApplication memberApp = new SpringApplication(MemberTrainApplication.class);
        ConfigurableEnvironment environment = memberApp.run(args).getEnvironment();
        Log.info("启动成功！！");
        Log.info("测试地址：\thttp://127.0.0.1:{}{}",environment.getProperty("server.port"),environment.getProperty("server.servlet.context-path"));
    }
}
